<?php

class Office_modul  extends CI_Model {
	public function __construct() {
		// Call the Model constructor
		parent::__construct();
	}

	/**
	 *
	 *
	 * @return void
	 * @author
	 */

	public function request($id = 0) {

		$this -> load -> helper('see');

		$data = false;
		$select_data = array();
		$DB2 = $this -> load -> database('adsent', TRUE, TRUE);

		$select = "SELECT   * FROM   `soffice` `r`    where r.id = $id  limit 1;";

		$q = $DB2 -> query($select);

		$this -> load -> model('search/sale/offices_modul', 'office');

		$data = $this -> office -> req($q);

		return $data;
	}

}
